<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
-->
</style>
<link href="images/skin.css" rel="stylesheet" type="text/css" />
<body>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" height="29" valign="top" background="images/mail_leftbg.gif">
				<img src="images/left-top-right.gif" width="17" height="29" />
			</td>
			<td width="935" height="29" valign="top" background="images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31">
							<div class="titlebt">
								停车管理
							</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="16" valign="top" background="images/mail_rightbg.gif">
				<img src="images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>
		<tr>
			<td height="71" valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9">
				<table width="100%" height="138" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td height="13" valign="top">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td valign="top">
							<s:form action="" theme="simple">
								<table width="98%" border="0" align="center" cellpadding="0"
									cellspacing="0">
									<tr>
										<td class="left_txt">
											当前位置：停车管理
										</td>
									</tr>
									<tr>
										<td height="20">
											<table width="100%" height="1" border="0" cellpadding="0"
												cellspacing="0" bgcolor="#CCCCCC">
												<tr>
													<td></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
												<tr>
													<td width="10%" height="55" valign="middle">
														<img src="images/title.gif" width="54" height="55">
													</td>
													<td width="90%" valign="top">
														<span class="left_txt2">停车管理</span>
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											&nbsp;
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" height="31" border="0" cellpadding="0"
												cellspacing="0" class="nowtable">
												<tr>
													<td class="left_bt2" align="center">
														&nbsp;&nbsp;&nbsp;&nbsp;停车列表
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td>
											<table width="100%" border="0" cellspacing="0" cellpadding="0">
												<tr>
													<th width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
														停车位置
													</th>
													<th width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
														住户
													</th>
													<th width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
														备注
													</th>
													<th width="40%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
														操作
													</th>
												</tr>
												<s:iterator var="park" value="%{#request.parkList}">
													<tr>
														<td width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
															<s:property value="%{#park.location}"/>
														</td>
														<td width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
															<s:if test="%{null == #park.tenement}">
																&nbsp;
															</s:if>
															<s:else>
																<s:action name="getTenement" namespace="/admin">
																	<s:param name="tenement.tid" value="%{#park.tenement.tid}"></s:param>
																</s:action>
																<s:a href="getTenement.action?tenement.tid=%{#request.tenement.tid}">
																	<s:property value="%{#request.tenement.tname}"/>
																</s:a>
															</s:else>
														</td>
														<td width="20%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
															<s:if test="%{null == #park.note || (\"\").equals(#park.note)}">
																&nbsp;
															</s:if>
															<s:else>
																<s:property value="%{#park.note}"/>
															</s:else>
														</td>
														<td width="40%" height="30" align="center" bgcolor="#f2f2f2" class="left_txt2">
															<s:a href="deletePark.action?park.pid=%{#park.pid}"
																onclick="return confirm('你确定要删除此记录吗？')">
																删除
															</s:a>
															&nbsp;&nbsp;&nbsp;
															<s:a href="getPark.action?park.pid=%{#park.pid}">
																详情
															</s:a>
														</td>
													</tr>
												</s:iterator>
												<tr>
													<td colspan="4" align="center" class="left_txt2" valign="middle" height="100px">
														&nbsp;&nbsp;&nbsp;&nbsp;
													    <s:if test="%{#request.page.hasPrePage == true}">
												    		<s:a href="showParkByTag.action?index=first">首页</s:a>
												    		&nbsp;&nbsp;&nbsp;&nbsp;
												    		<s:a href="showParkByTag.action?index=prew&pageno=%{#request.page.currentPage-1}">上一页</s:a>
													    </s:if>
													    <s:else>
													    	首页&nbsp;&nbsp;&nbsp;&nbsp;
													    	上一页&nbsp;&nbsp;&nbsp;&nbsp;
													    </s:else>
													    <s:if test="%{#request.page.hasNextPage == true}">
													    	<s:a href="showParkByTag.action?index=next&pageno=%{#request.page.currentPage +1}">下一页</s:a>
													    	&nbsp;&nbsp;&nbsp;&nbsp;
													    	<s:a href="showParkByTag.action?index=end&pageno=%{#request.page.totalPage}">尾页</s:a>
													    </s:if>
													    <s:else>
													    	下一页&nbsp;&nbsp;&nbsp;&nbsp;
													    	尾页&nbsp;&nbsp;&nbsp;&nbsp;
													    </s:else>
													    页次${page.currentPage}/${page.totalPage}&nbsp;&nbsp;&nbsp;共${page.totalCount}条记录
													    <div align="center"></div>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</s:form>
						</td>
					</tr>
				</table>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" background="images/mail_leftbg.gif">
				<img src="images/buttom_left2.gif" width="17" height="17" />
			</td>
			<td height="17" valign="top" background="images/buttom_bgs.gif">
				<img src="images/buttom_bgs.gif" width="17" height="17" />
			</td>
			<td background="images/mail_rightbg.gif">
				<img src="images/buttom_right2.gif" width="16" height="17">
			</td>
		</tr>
	</table>
</body>

